SUCCESS = "SUCCESS"
FAILED = "FAILED"


class MsgCode(object):
    NO_RESOURCE: str = 421  # 网页明确表明无资源
    PAGE_BLANK: str = 420  # 网页空白页


class ReturnInfo(object):
    def __init__(self):
        self.status = FAILED  # SUCCESS FAILED
        self.msg_code = ''
        self.msg = ''
        self.data = ''

    def todict(self):
        # __dict__ 是字典，不进行转化无法输出
        return self.__dict__
